home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / ansi / hercules.zip / HERCBIOS.H < prev    next >
Text File  |  1986-09-05  |  2KB  |  55 lines

  1. .XLIST
  2.     page    66,132
  3. ;************************************************************
  4. ;
  5. ;    Header file for inclusion in HERCBIOS assemblies
  6. ;
  7. ;        Dave Tutelman - 8/86
  8. ;
  9. ;*************************************************************
  10.  
  11. ;iAPX286    equ    1    ; UN-COMMENT FOR A 186 or 286 MACHINE!
  12.                 ;   Some of the "ugly" constructs are for speed
  13.                 ;   on the 808X, while the "obvious" constructs
  14.                 ;   run faster on the 186 & 286.
  15. VIDI        equ    10H    ; video interrupt, 10H for real, 50H for debug
  16. pixbase        equ    0B000H    ; beginning segment of graphics board
  17. mpx_bios    equ    0F000H    ; MPX-16 BIOS segment address
  18. vid_offset    equ    0F065H    ; MPX-16 video offset in BIOS
  19. charbase    equ    0FA6EH    ; MPX-16 BIOS character table offset
  20. herc_mode    equ    8    ; Hercules graphics mode
  21. ibm_mode    equ    6    ; IBM Hi-Res color graphics mode.
  22.                 ; we'll try to handle it.
  23. vid_port    equ    03B4H    ; 6845 index register (data reg = 3B5H )
  24.                 ;              (control port = 3B8H )
  25. ;------------------------------------------
  26. bios    segment at    mpx_bios    ; setup call to vid_bios
  27.         org    vid_offset
  28. vid_bios    proc    far
  29. vid_bios    endp
  30. bios        ends
  31. ;------------------------------------------------
  32. bios_data    segment at 040h
  33.         org    049h
  34. video_mode    db    ?    ; current video mode
  35. n_cols        dw    ?    ; number of columns in video display
  36.         org    050h
  37. curs_pos    dw    8 dup(?) ; cursor for each of 8 pages
  38. curs_mode    dw    ?    ; cursor mode
  39. active_page    db    ?    ; current active display page
  40. video_base    dw    ?    ; video port base
  41. chip_ctrl    db    ?    ; current setting of 3X8 register
  42. bios_data ends
  43. ;------------------------------------
  44. intvec         segment at 0        ; interrupt vector
  45.         org    4*1Fh        ; interrupt 1FH
  46. user_table    dd    ?
  47. intvec         ends
  48. ;------------------------------------
  49.  
  50. IFDEF    iAPX286
  51.     .286c            ; allow 286/186-only instructions
  52. ENDIF
  53.  
  54. .LIST
  55.